﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using WPFTemplate.ViewModel;

namespace WPFTemplate
{
    /// <summary>
    /// CommandView.xaml 的交互逻辑
    /// </summary>
    public partial class CommandView : Window
    {
        public CommandView()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var view =new MainWindow("APerson");
            view.Height = 400;
            view.Width = 800;
            //以某种形式 1.传值2.show不同的viewmodel 让程序自动进行判定 告诉主窗体 我应该展示A内容
            view.Show();
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            var view = new MainWindow("BPerson");
            //以某种形式 告诉主窗体 我应该展示B内容
            view.Show();
        }
    }
}
